<#include "/includes/header.ftl">


<div id='productlist_brands'>
	<#include "/includes/leftbar.ftl">
</div>

<div id='productlist_contents'>
  <form name="edit_store_profile" action='<@spring.url "/confirmcouponitem.php"/>' method="post" onsubmit="return check_form(create_account);">
    <@spring.bind "command.couponItem.coupon.sysId" />
    <#assign cpsid= spring.status.value>
    <@spring.bind "command.couponItem.sysId" />
    <#assign cpisid= spring.status.value>
    <INPUT type='hidden' name='cpisid' value='${cpisid}'>
		<div><b>Confirm Store Presented Coupon Item</b></div>
		<div class="label">coupon Id:</div>
		<div>
	          <@spring.bind "command.couponItem.coupon.id" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">coupon Name:</div>
		<div>
	          <@spring.bind "command.couponItem.coupon.name" />
	          <A href='<@spring.url "/viewcoupondetail.jsp?cpsid=${cpsid}"/>'>${spring.status.value?default("")}</A>
		</div>
		
		<div class="label">coupon Full Name:</div>
		<div>
	          <@spring.bind "command.couponItem.coupon.fullName" />
	          ${spring.status.value?default("")}
		</div>
		
		
		<div class="label">coupon Item Id:</div>
		<div>
	          <@spring.bind "command.couponItem.id" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 0:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber0" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 1:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber1" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 2:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber2" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 3:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber3" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 4:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber4" />
	          ${spring.status.value?default("")}
		</div>
		
		<div class="label">Lottery Number 5:</div>
		<div>
	          <@spring.bind "command.couponItem.lotteryNumber5" />
	          ${spring.status.value?default("")}
		</div>
		
		<#assign status = command.couponItem.status?default(1002)>
		<#if status == 1002>
			<div class="label">Your Comment:</div>
			<div>
		          <@spring.bind "command.couponItem.shortDesc" />
		          <textarea  name="${spring.status.expression}" cols="60" rows="3">${spring.status.value?default("")}</textarea>&nbsp;<SPAN class=inputRequirement>*</SPAN>
		          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
			</div>
			
			<div class="label">Notes:</div>
			<div><font color='red'>If you found the above information is not consistent with you paper coupon,please ask the store to give you a new one, this one will be no use anymore. 
			</div>
			
			
			<div class="label"></div>
			<div>
		    <input type="submit" name="Submit" value="Confirm" />
			</div>
		<#else>
			<div class="label">Your Comment:</div>
			<div>
	          <@spring.bind "command.couponItem.shortDesc" />
	          ${spring.status.value?default("")}
			</div>
		</#if>
	</form>		
</div>

<#include "/includes/footer.ftl">